<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="16"
        ><div class="grid-content bg-purple">
          <img id="img1" src="../../../public/images/login1.png" alt="" />
          <img id="img2" src="../../../public/images/login2.png" alt="" />
          <div class="login">
            <h1>账号登录</h1>
            <el-form   >
              <el-form-item  >
                <el-input prefix-icon="el-icon-user" clearable v-model="input.admin" placeholder="登录用户名/手机号"></el-input>
              </el-form-item>
              <el-form-item >
                <el-input prefix-icon="el-icon-s-goods" clearable v-model="input.password" placeholder="请输入密码" show-password></el-input>
              </el-form-item>
              <el-checkbox >记住密码</el-checkbox><br>
              <el-button  style="margin-top:50px;width:100%;margin-bottom:20px" type="primary" size="medium">登录</el-button>
            </el-form>
            <span>忘记密码</span>
            <router-link to="/register"><i>免费注册</i></router-link>
          </div></div
      ></el-col>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Login",
  data(){
    return{
      input:{
        admin:'',
        password:''
      }
    }
  }
};
</script>

<style lang="less" scoped>
.el-row {
  margin-bottom: 20px;
  &:last-child {
    margin-bottom: 0;
  }
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  // background: #99a9bf;
}
.bg-purple {
  position: relative;
  #img1 {
    display: block;
    width: 1200px;
    height: 600px;
  }
  #img2 {
    display: block;
    width: 700px;
    height: 400px;
    position: absolute;
    left: 20px;
    top: 100px;
  }
  .login {
    box-sizing: border-box;
    padding: 30px;
    width: 407px;
    height: 406px;
    // background: #F2F2F2;
    background: #fff;
    position: absolute;
    top: 100px;
    right: 180px;
    border-radius: 20px;
    h1{
      font: 20px "Adobe 黑体 Std R";
      margin-bottom: 20px;
    }
    i{
      position: absolute;
      right: 30px;
      bottom: 65px;
    }
  }
  // background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
